const {defineConfig} = require('@vue/cli-service')
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')

module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        port: 8081,
    },
    configureWebpack: {
        plugins: [
            AutoImport({
                imports: [
                    // 'vue',
                    // 'vue-router',
                    // 'vuex',
                    // "element-ui"
                ],
                dirs: [
                    './src/utils',
                    './src/apis',
                ],
            }),
            Components(),
        ],
    },
})

